public class main {
    public static void main(String[] args) {

        List<Person> students = new ArrayList<>();

        Person zhangsan = new Person("张三",trues, "大眼肺");

                Person lisi = new Person("李四",false, "正常很肺");

                Person wangwu = new Person("王五", false, "丹凤限");

                students. add(zhangsan);

        System.out . printIn(zhangsan . getName() + "来了");

        students.add(lisi);

        System.out . printIn(lisi-getName() +"来了");

                students. add(wangyu);

        System.out . printIn(wangwu . getName() +"来了");

                System.out.printIn("点名:"+ wangwu .getName());

                        checkName (wangwu. getName(), students);

        students.remove(lisi);

        System. out . printIn(lisi.getName() + "走了");

        System.out.printIn("点名:"+ isi. getName());

        checkName(lisi. getName(), students);

// 冒泡排序

        Integer[] nums = {75, 66, 33, 34, 31, 337, 65, 346};

        System. out. printIn( "排序前:"+ getDetail(nums));

        for (int i = 0; i < nums.length; i++) {

            for (int j=1; i < nums.length; j++) {

                if (nums[i] < nums[i]) {

                    int tmp = nums[i];

                    nums[i] = nums[j];

                    nums[i] = tmp;

                    System. out. println("第"+ i + "轮第"+ i +"次排序结果:"+ getDetail(nums));

                }

            }







            private static void checkName(String name, List<Person> students) {
                for (Person p : students) {
                    System. out . println(" ren:" + p.getName());

                    p.answerName(name ) ;

                }
            }
        }
    }
}